<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/page/common/public.jspf"%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset=utf-8" />
<title>会员中心-提现</title>
<link rel="stylesheet" type="text/css" href="${path}/css/base.css"/>
<link rel="stylesheet" type="text/css" href="${path}/css/layout.css"/>
<link href="${skin }/theme.css" rel="stylesheet" type="text/css" />
<link href="${skin }/member.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="${path }/style/bank.css" />
<script src="${path }/js/common/jquery1.10.2.min.js"></script>
<script src="${path }/js/common/helper.js?v=${v}"></script>
<script src="${path }/js/common/cookie.js?v=${v}"></script>
<script src="${path }/js/member/draw.js?v=${v}"></script>
<script src="${path }/js/member/bindCard.js?v=${v}"></script>
</head>
<body bgcolor="#f9f9f9">
        <!-- head -->
		<c:import url="../../include/top.jsp"></c:import>
    	<!--主体-->
        <div class="pageCenter registeredBox">
        	<div class="qyMsgBox">
        		<!--左边菜单  -->
            	<c:import url="../left.jsp"></c:import>
            	<!--左边菜单  -->
                <div class="qyMsgRight float_r">
                		<div class=" auto_height" style="background: #fff;margin-bottom: 20px;">
								<div style="padding: 12px">
									<div class="hkjh_top_ul1_li1div1">提现</div>
								</div>
								<c:if test="${!isTrust}">
								<div>
									<table width="100%" border="1" cellpadding="0" cellspacing="1" bgcolor="#d6d6d6">
									<tr class="white_bj_title">
										<td width="26%" height="30" align="center">银行名称</td>
										<td width="12%" align="center">银行卡尾号</td>
										<td width="21%" height="30" align="center">支行名称</td>
									</tr>
									<c:forEach items="${bankCardList}" var="bankCard" varStatus="status">
									<tr class="white_bj">
										<td height="35" align="center">
											<input name="bankcard_no" type="radio" class="l" <c:if test="${bankCard.isPriority eq 'YES'}">checked</c:if> value="${bankCard.id}" /><i class="${bankCard.bankName.value} l"></i>
										</td>
										<td height="35" align="center">${fn:substring(bankCard.bankCardNo,fn:length(bankCard.bankCardNo)-4,fn:length(bankCard.bankCardNo))}</td>
										<td height="35" align="center">${bankCard.subbranch}</td>
									</tr>
									</c:forEach>
									<tr class="white_bj">
										<td height="30" colspan="5"><a class="public_gray"
											style="vertical-align: middle;" href="${path}/memberCenter/cardManager.htm"><b
											title="添加银行卡">添加银行卡</b></a><span>(还可以添加${maxAccountNum}个)</span></td>
									</tr>
								</table>
								</div>
								</c:if>
								<c:choose> 
									     <c:when test="${isBindCard eq '1'}">
									     <style>
									     .money_cont h1{ float: left;font-weight: 400;}
									     .money_cont li{padding: 18px 0;clear: both;font-size:16px;}
									     </style>
								     		<ul class="gray auto_height money_cont f_yh" style="margin: 26px 20px;">
								     			<input type="hidden" name="canDrawMoney" id="canDrawMoney" value="${account.baseMoney/100 - account.freezeMoney/100}"/>
												<li><h1>持卡人: </h1><div class="l" style="padding-left: 10px;">${account.userName }</div></li>
												<li><h1>可提现金额: </h1><div class="l" style="padding-left: 10px;"><span class="red">￥${account.baseMoney/100 - account.freezeMoney/100 }</span> 元</div></li>
												<li><h1>提现金额: </h1><div class="l" style="padding-left: 10px;">
											 		<input type="text" name="money" id="money" value="请输入提现金额" onfocus="if (value =='请输入提现金额'){value =''}" onblur="if (value ==''){value='请输入提现金额'}" class="font_yh s_16" style="padding:1px 0 1px 6px ;line-height:36px;border:1px solid #b4b4b4; margin-right:8px;width:220px; height:36px;"/>
												</div></li>
												<!--  
												<li><h1>提现手续费: </h1><div class="l" style="padding-left: 10px;"><span class="red">￥0</span> 元 <span class="s_14">（提现手续费将从您的账户可用余额中扣除）</span></div></li>
												<li><h1>实际扣除金额: </h1><div class="l" style="padding-left: 10px;"><span class="red">￥0</span> 元 </div></li>
												-->
												<li style="padding-top:29px;padding-bottom:29px"><h1>&nbsp;</h1>
												
											    <div class="l" style="padding-left:0px;"><a href="javascript:void(0);" class="pub_bt" onclick="draw()">确定</a></div>
											    </li>
											</ul>
									     </c:when> 
									     <c:when test="${isBindCard eq '0'}"> 
									     	<div class="tixian_tip">很抱歉，您还没有绑定银行卡，暂时不能取现。现在就去绑定吗？ <a href="<%=request.getContextPath()%>/memberCenter/cardManager.htm"> >>点我绑定</a></div>
									     </c:when> 
									     <c:otherwise></c:otherwise>
								</c:choose>
						<br />
						<br />
						</div>
                </div>
                <div class="clear_both"></div> 
         	</div>       
        </div>
    	<!--主体-->
    	<!--foot-->
        <c:import url="../../include/foot.jsp"></c:import>
        <!--foot-->    
</body>
</html>

